package com.mrjoew.weekend.services.shop;

import com.mrjoew.weekend.entities.dto.shop.GoodsDTO;
import com.mrjoew.weekend.entities.po.shop.GoodsPO;
import com.mrjoew.weekend.entities.vo.shop.GoodsVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface GoodsService {

    public GoodsPO save(GoodsPO goodsPO);

    public List<GoodsPO> saveAll(List<GoodsPO> pos);

    public Page<GoodsPO> list(GoodsDTO condition, Pageable pageable);

    /**
     * 获取商品详情
     *
     * @param id
     * @return
     */
    public GoodsVO get(Integer id);
}
